﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Classes
{

    class ListOfConnections
    {
        String infoAboutConnections { get; set; }
         IList<Connection> connectionList { get; set; }
        int noOfseatsLeft { get; set; }
    public ListOfConnections()
        {
            connectionList = new List<Connection>();
        }
    public IList<Connection> GetConnectionList()
    {
        return connectionList;
    }
        public void AddConnection(Connection connection)
    {
        connectionList.Add(connection);
    }
    }
}
